package ml.battlecall.h3;

import java.util.Set;

/**
 * Created by chenjianliang on 2018/10/30.
 */
public class Category {
    private Long id;
    private String name;
    private Category parentCategory;
    private Set<Category> childCategories;

    public Category(){

    }


    public Category(String name, Category parentCategory, Set<Category> childCategories) {
        this.name = name;
        this.parentCategory = parentCategory;
        this.childCategories = childCategories;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Category getParentCategory() {
        return parentCategory;
    }

    public void setParentCategory(Category parentCategory) {
        this.parentCategory = parentCategory;
    }

    public Set<Category> getChildCategories() {
        return childCategories;
    }

    public void setChildCategories(Set<Category> childCategories) {
        this.childCategories = childCategories;
    }
}
